RS485, Modbus & NVT
This category contains functions specific to RS-485 or MODBUS devices.
- Overview
- Arguments
- Example
Sends message to RS-485 bus.
tip
Ensure RS-485 is turned on using api.rs485State(1) first.
- msg (string) - Data to be sent to RS-485 bus
--sends 'test' string to RS-485
api.rs485Send('test')
- Overview
- Arguments
- Return
- Examples
Configures the RS-485 communication interface.
api.rs485Setup("RX_BUFFER", value)
- "RX_BUFFER" (string) - set/get size of receive buffer
- value (integer)(optional) - set size of the receive buffer